package com.atguigu.springcloud.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author yangjin
 * @Description
 * @Date 2021/6/26/19:32
 **/
@Configuration
public class MyIRuleConfig {

    @Bean
    public IRule getRandomRule(){
        return new RandomRule();
    }
}
